#include <stdio.h>

int main(void)
{
int count = 5; 
double powers[] = {42322,45771,1 ,-1,33};
double deft;
int delnx = -1;
int i;
	printf("which one do you want delete");
	scanf("%lf",&deft);
	for (i = 0;i < count;i++)
	{
	     if (deft ==powers[i]) 
	     {
	        delnx = i;
		break;	
	     }    
	}
	if(-1 == delnx)
	{	
		printf("sorry,none of powers you want to delete!,please input right powers");	
	}
	else
	{
	
		for (i = delnx;i < count - 1;i++)
		{	
			
		    powers[i]=powers[i+1];
		}  


	
		for(i=0;i < count - 1;i++)
		{
	   		printf("%.2lf\t",powers[i]);
		}
	}
	return 0;
}
